home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / snip9_91.arc / HIRES.ASM < prev    next >
Assembly Source File  |  1991-09-17  |  1KB  |  37 lines

  1. 1. 80 x 50 on VGA
  2. =================
  3.        mov     ax,1202h                ; select 400 scan line mode
  4.        mov     bl,30h
  5.        int     10h
  6.        mov     ax,3                    ; select 80 x 25 16 colour mode
  7.        int     10h
  8.        mov     ax,1112h                ; load 8x8 character set into RAM
  9.        mov     bl,0                    
  10.        int     10h                    
  11.  
  12. 2. 80 x 43 on EGA
  13. =================
  14.        mov     ax,3                    ; establish 350 scan line mode
  15.        int     10h                     ; and 80 x 25 16 colour mode
  16.        mov     ax,1112h                ; 8x8 character set
  17.        mov     bl,0
  18.        int     10h
  19.        mov     ax,40h                  ; update cursor size/ pointers
  20.        mov     es,ax
  21.        mov     dx,es:[63h]
  22.        mov     ax,060ah
  23.        out     dx,ax
  24.        mov     ax,000bh
  25.        out     dx,ax
  26.        mov     ax,12h                  ; set up new prtscr routine
  27.        mov     bl,20h
  28.        int     10h
  29.  
  30. Warnings:
  31. =========
  32. DOS's ansi.sys has no comprehension of screens having more than 25 lines!
  33.  
  34. Reference:
  35. "Programmer's Guide to PC and PS/2 Video Systems": author Richard Wilton.
  36. Microsoft Press 1988.  ISBN 1-55615-103-9
  37.